package cn.firecode.data_collect;

import cn.firecode.data_collect.filter.JwtFilter;
import org.assertj.core.util.Lists;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;

import java.util.List;

@SpringBootApplication
@MapperScan("cn.firecode.data_collect.mapper")
public class DataCollectApplication extends SpringBootServletInitializer {

//    public static void main(String[] args) {
//        SpringApplication.run(DataCollectApplication.class, args);
//    }

    public static void main(String[] args) {
        SpringApplication.run(DataCollectApplication.class, args);
    }

    @Override//为了打包springboot项目
    protected SpringApplicationBuilder configure(
            SpringApplicationBuilder builder) {
        return builder.sources(this.getClass());
    }

}
